# Maintainer: Jaroslav Lichtblau <svetlemodry@archlinux.org>
# Contributor: Laurent Carlier <lordheavym@gmail.com>
# Contributor: gumper <gumper1034@gmail.com>

pkgname=libalkimia
pkgver=8.1.2
pkgrel=2
pkgdesc="A library with common classes and functionality used by finance applications for the KDE SC"
arch=('loong64' 'x86_64')
url="https://community.kde.org/Alkimia/libalkimia"
license=('LGPL')
depends=('qt5-webengine' 'knewstuff5' 'hicolor-icon-theme' 'perl')
makedepends=('cmake' 'doxygen' 'extra-cmake-modules' 'plasma-framework' 'kpackage5' 'kdoctools5')
source=(https://download.kde.org/stable/alkimia/$pkgver/alkimia-$pkgver.tar.xz{,.sig})
validpgpkeys=('2060FF0BBF0E77C4E56DECE0B3DA98B373A0D6FA'
              '8C13BC14185A65215B592A2F1243132CD9321771'
              '91F17B048CF4668CD27FE9FBD3694D8B346FCA80') # Ralf Habacker <ralf.habacker@freenet.de>
sha256sums=('cf846ee87b9cc630f58e0bdd23334296810ba3bcc1751fe2f4722161897ee33a'
            'SKIP')

build() {
  mkdir build
  cd build

  cmake -DSHARE_INSTALL_DIR=/usr/share ../alkimia-${pkgver}
  make
}

package() {
  cd build

  make DESTDIR="${pkgdir}" install
}
